#include<string>

#include "Iterator.h"

using namespace std;

int main(int argc, char** argv)
{
	ConcreteAggregate* pAgg = new ConcreteAggregate(5);
	ConcreteIterator iter(pAgg);

	for (iter.First(); !iter.IsDone(); iter.Next())
	{
		cout << iter.CurrentItem() << endl;;
	}

	delete pAgg;

	return 0;
}
